package cn.sumpu.app.guoguojie.constant;

import java.util.HashMap;
import java.util.Map;

public enum Constellation {
	ONE("01","水瓶座"),TWO("02","双鱼座"),THREE("03","白羊座"),FOUR("04","金牛座"),FIVE("05","双子座"),SIX("06","巨蟹座"),SEVEN("07","狮子座"),
	EIGHT("08","处女座"),NINE("09","天枰座"),TEN("10","天蝎座"),ELEVEN("11","射手座"),TWELVE("12","摩羯座"),OTHER("13","保密");

	private Constellation (String value, String label){
		this.value = value;
		this.label = label;
	}
	
	private String value;
	private String label;
	private static Map<String,String> cache;
	
	static {
		cache = new HashMap<String,String>();
		cache.put(ONE.getValue(), ONE.getLabel());
		cache.put(TWO.getValue(), TWO.getLabel());
		cache.put(THREE.getValue(), THREE.getLabel());
		cache.put(FOUR.getValue(), FOUR.getLabel());
		cache.put(FIVE.getValue(), FIVE.getLabel());
		cache.put(SIX.getValue(), SIX.getLabel());
		cache.put(SEVEN.getValue(), SEVEN.getLabel());
		cache.put(EIGHT.getValue(), EIGHT.getLabel());
		cache.put(TEN.getValue(), TEN.getLabel());
		cache.put(ELEVEN.getValue(), ELEVEN.getLabel());
		cache.put(TWELVE.getValue(), TWELVE.getLabel());
		cache.put(OTHER.getValue(), OTHER.getLabel());
	}
	
	public String getValue() {
		return value;
	}
	public String getLabel() {
		return label;
	}
	public static String getLabelByValue(String value) {
		return cache.get(value);
	}
	
}
